package com.lrkj.payfee.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 预收单对象 tb_advance_receipt
 *
 * @author yajun_ren
 * @date 2021-08-06
 */
@Data
public class AdvanceReceipt extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String madvanceReceiptId;

    /**
     * 预收金额
     */
    @Excel(name = "预收金额")
    private BigDecimal billMoney;

    /**
     * 预收日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "预收日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date billTime;

    /**
     * 房屋id
     */
    @Excel(name = "房屋id")
    private String roomId;

    /**
     * 业主ID
     */
    @Excel(name = "业主ID")
    private String ownerId;
    /**
     * 业主名称
     */
    private String ownerName;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    //剩余金额
    private BigDecimal amountRemaining;

    //业务单号
    private String businessNo;

    //业务ID
    private String businessId;

    //业务类型
    private String businessType;

    //预收单号
    private String no;

    //退款金额
    private BigDecimal drawbackMoney;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("madvanceReceiptId", getMadvanceReceiptId())
                .append("billMoney", getBillMoney())
                .append("billTime", getBillTime())
                .append("roomId", getRoomId())
                .append("ownerId", getOwnerId())
                .append("createBy", getCreateBy())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
